#include<iostream>
using namespace std;

bool win(int n)
{
    return !(n%3)==0; //能整除就输
}

int main()
{
    cout<<win(100)<<win(200)<<win(300)<<win(400)<<win(500);
}
